/*-----------------------------------------------------------------------------
 * PROJ : spring-test
 * NAME : DaoFactroy
 * DESC : 
 * Author : hosung
 * VER  : v1.0  * 
 * Copyright 2011 RF Window All rights reserved
 *-----------------------------------------------------------------------------
 *                  	Change History                       
 *-----------------------------------------------------------------------------
 *    DATE     AUTHOR                      DESCRIPTION                        
 * ----------  ------  -------------------------------------------------------- 
 * 2011. 5. 12.	hosung  First Write.                                     
 *-----------------------------------------------------------------------------
 */ 
package com.rfwindow.dao;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author hosung
 *
 */
@Configuration 
public class DaoFactory {
	@Bean
	public UserDao userDao() {
		UserDao dao = new UserDao(connectionManager());
		return dao;
	}

	@Bean
	public ConnectionManager connectionManager() {
		ConnectionManager ConnectionManager = new MySqlConnectionManager();
		return ConnectionManager;
	}

}
